package com.hulk.ratel.persistence.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;


import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 实体父类
 * @author hulk
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SuperEntity<T extends Model<?>> extends Model<T> {




    @TableField("tenant_id")
    private String tenantId;

    @TableField(value ="reversion",fill = FieldFill.INSERT)
    private Long reversion;



    public static final String TENANT_ID = "tenant_id";

    public static final String REVERSION = "reversion";

    public static final String UPDATED_TIME = "updated_time";

    public static final String CREATED_TIME = "created_time";


}
